/**
* @author Stefano Cavezzo
* @copyright 2008
* @licence: www.nowconnect.it/licence/webcreator
*/
Ext.onReady(function(){
Ext.get('dologin').on('click',function(){
var simple = new Ext.form.FormPanel({
standardSubmit: true,
frame:true,
bodyStyle:'padding:30px 5px 0',
defaults: {width: 130},
defaultType: 'textfield',
items: [{
fieldLabel: 'Username',
name: 'username',
value: '
Notice: Undefined index: username in /var/www/webcreator/application/views/scripts/auth/login.phtml on line 5
',
allowBlank:false
},
{
fieldLabel: 'Password',
name: 'password',
inputType: 'password',
allowBlank: false
}
//##### INIZIO MODIFICA ALESSANDRO 01/12/2011 per passare anche il valore di chiave parrocchia
/*,
{
fieldLabel: 'site',
name: 'site',
//inputType: 'hidden',
allowBlank: false
}
*/
//##### FINE MODIFICA ALESSANDRO 01/12/2011 per passare anche il valore di chiave parrocchia
],
buttons: [{
text: 'Login',
handler: function() {
simple.getForm().getEl().dom.method = 'POST';
simple.getForm().submit();
}
}]
});
var window = new Ext.Window({
title: 'Login',
width: 300,
height:200,
resizable: false,
layout: 'fit',
plain:true,
bodyStyle:'padding:5px;',
buttonAlign:'center',
items: simple
});
window.show();
});
});